package com.taotao.slink.model.entity;

import com.alibaba.fastjson.JSON;
import com.gitee.fastmybatis.annotation.LogicDeleteStrategy;
import lombok.Data;

import io.swagger.annotations.ApiModelProperty;
import com.gitee.fastmybatis.annotation.Column;

import com.gitee.fastmybatis.annotation.Pk;
import com.gitee.fastmybatis.annotation.PkStrategy;
import com.gitee.fastmybatis.annotation.Table;


import java.time.LocalDateTime;



/**
* 短链接
* @author youbeiwuhuan
* @date   2023-06-26 14:36:19
*/
@Data
@Table(name = "short_link",pk = @Pk(name = "id", strategy = PkStrategy.NONE))
public class ShortLink {

	/**
	* 
	*/
	@ApiModelProperty(value="")
	private Long id;
	/**
	* 原始链接
	*/
	@ApiModelProperty(value="原始链接")
	private String srcLink;
	/**
	* 短链接
	*/
	@ApiModelProperty(value="短链接编码")
	private String shortLinkCode;
	/**
	* 是否删(非0-是,0-否)
	*/
	@ApiModelProperty(value="是否删(非0-是,0-否)")
	@Column(logicDelete = true, notDeleteValue = "0",logicDeleteStrategy = LogicDeleteStrategy.ID_FILL)
	private Long deleted;
	/**
	* 创建时间
	*/
	@ApiModelProperty(value="创建时间")
	private LocalDateTime createTime;
	/**
	* 创建人
	*/
	@ApiModelProperty(value="创建人")
	private Long createId;
	/**
	* 更新时间
	*/
	@ApiModelProperty(value="更新时间")
	private LocalDateTime updateTime;
	/**
	* 更新人
	*/
	@ApiModelProperty(value="更新人")
	private Long updateId;

	@Override
	public String toString() {
	return JSON.toJSONString(this);
	}

}